﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.IO;

namespace AbstraX
{
    public enum Message
    {
        ShowUI,
        BuildMessage,
        PercentComplete,
        BuildComplete,
        Error
    }

    [DataContract]
    public class EventMessage
    {
        [DataMember]
        public Message Message { get; set; }
        [DataMember]
        public byte[] EventArgs { get; set; }

        public EventMessage()
        {
        }

        public EventMessage(Message message, params object[] parms)
        {
            this.WriteTo(message, parms);
        }
    }
}
